//
//  JMEnv.m
//  NingBoBank
//
//  Created by dev on 14-3-3.
//
//



#import "JMEnv.h"
#import "UIColor+NBHelper.h"
@implementation JMEnv

-(id) init
{
    if (self = [super init])
    {
        //self.iTitleColor = [UIColor colorWithRed:95/255.f green:31/255.f blue:31/255.f alpha:1];//原先得titile 颜色
        self.iTitleColor = UIColorFromRGB(144,89,19);//
        self.iTextColor = UIColorFromRGB(102 ,101, 101);//（ 179 178 178 ）
        self.iNoteColor = UIColorFromRGB(150, 149, 149);//RGB：#969595（ 150  149 149）    24号字体
        self.iHeaderColor = [UIColor redColor];
        self.iToolBarColor =  UIColorFromRGB(255, 147, 65);//[UIColor lightGrayColor];//255 147 65
        self.iBGColor = UIColorFromRGB(254, 242, 227);
        self.iTableViewSeperatorColor = UIColorFromRGB(145, 88, 33);
        
        self.deviceScreenWidth = [[UIScreen mainScreen] bounds].size.width;
        self.deviceScreenHeight = [[UIScreen mainScreen] bounds].size.height;
        self.backgroundViewTopMargin = 10.0;
        self.backgroundViewLeftMargin = 5.0;
        self.applicationNaviBarHeight = 44.0;
        self.applicationStatusBarHeight = 20.0;
        self.buttonInFooterHeight = 44.0;
        self.UITableViewMarginLeft = 5.0;
        self.UITableViewMarginTop = 10.0;
        self.buttonInFooterWidth = self.deviceScreenWidth - 2 * self.UITableViewMarginLeft;
        
        self.cellHeight = 44.0;
        
        
        self.tipsTilteFont = [UIFont systemFontOfSize:15];
        self.tipsContentFont = [UIFont systemFontOfSize:13];
        
    }
    return self;
}

+ (JMEnv *)sharedEnv
{
    static JMEnv *env_nb = nil;
    static dispatch_once_t predicate;
    dispatch_once(&predicate, ^{
        env_nb = [[self alloc] init];
    });
    return env_nb;
}

@end


